package com.htzz.collection.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 下发消息到设备的消息
 * @author xudezhi
 * @title: MqttInfoDto
 * @projectName collection
 * @description: TODO
 * @date 2021/9/214:46
 */
@Data
@ApiModel(value = "mqtt发送到设备的消息工具类",description = "mqtt发送到设备的消息工具类")
public class MqttInfoDto {

    @NotEmpty
    @ApiModelProperty(value = "设备ID",example = "sn19990111",required = true)
    private String devId;


    @NotEmpty
    @ApiModelProperty(value = "数据信息",example = "{\"state\":\"1000\",\"speed\":\"50\"}")
    private Map<String,Object> data = new HashMap<>();

    @ApiModelProperty(value = "消息级别",example = "1")
    private int qos=0;
}
